package org.fatmansoft.teach.models;

import lombok.Data;

import javax.persistence.*;

@Entity
@Data
@Table(name = "student_course",uniqueConstraints = {})
public class StudentCourse {
    @Id
    private Integer studentCourseId;

    @ManyToOne
    @JoinColumn(name = "student_id")
    private Student student;

    @ManyToOne
    @JoinColumn(name = "course_id")
    private Course course;

    private Integer qizhong;//期中
    private Integer qimo;//期末
    private Integer normal;//平时

    private Double mark;//总分

    private Integer ranking;
}
